Cache the Xen version in the xenstat_handle, since it should never change.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Fri, 26 Aug 2005 08:48:59 +0000 (08:48 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Fri, 26 Aug 2005 08:48:59 +0000 (08:48 +0000)
commitb70e51cdb241f0dab6dad46d56465e3b338f0dfa
treeebfe4e777b0efc58a6ef31f641d52a8cd42d89f9
parent82f5b43a1b756bf699955de602b075ed2f080446
Cache the Xen version in the xenstat_handle, since it should never change.
Use a collector and new flag for Xen version information, to avoid the
extra hypercall if the caller does not want the information.
Reference the xenstat_handle in the xenstat_node for ease of access
later, and update collectors accordingly.
Signed-off-by: Josh Triplett <josht@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstat/libxenstat/src/xenstat.c
tools/xenstat/libxenstat/src/xenstat.h